package com.itheima.dto.message;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 分页展示信息dto
 * @author ysm
 */
@Data
@ApiModel(value = "分页展示信息Dto")
public class MessageQueryDto implements Serializable {

    private static final long serialVersionUID = -9100285627211084112L;
    /**
     * 信息id
     */
    @ApiModelProperty(value = "信息id" ,required = true)
    private Integer id;

    /**
     * 姓名
     */
    @ApiModelProperty(value = "发布用户名字" ,required = true)
    private String name;

    /**
     * 标题
     */
    @ApiModelProperty(value = "信息标题" ,required = true)
    private String title;

    /**
     * 内容
     */
    @ApiModelProperty(value = "信息内容" ,required = true)
    private String content;

    /**
     * 发布时间
     */
    @ApiModelProperty(value = "信息创建时间")
    private LocalDateTime createdAt;

}
